package com.castle.fortress.admin.form.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.form.entity.FormConfigEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
/**
 * 表单配置管理Mapper 接口
 *
 * @author castle
 * @since 2021-11-10
 */
public interface FormConfigMapper extends BaseMapper<FormConfigEntity> {

    /**
    * 扩展信息列表
    * @param pageMap
    * @param formConfigEntity
    * @return
    */
    List<FormConfigEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("formConfigEntity") FormConfigEntity formConfigEntity);

    /**
    * 扩展信息记录总数
    * @param formConfigEntity
    * @return
    */
    Long extendsCount(@Param("formConfigEntity") FormConfigEntity formConfigEntity);

    /**
    * 表单配置管理扩展详情
    * @param id 表单配置管理id
    * @return
    */
    FormConfigEntity getByIdExtends(@Param("id")Long id);


    Integer updateIpById(@Param("formConfigEntity") FormConfigEntity formConfigEntity);
}

